home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / NT / CODE / CHAP08 / PAINT4 / PAINT4VIEW.H < prev    next >
C/C++ Source or Header  |  1996-04-05  |  746b  |  31 lines

  1. //***********************************************************************
  2. //
  3. //  Paint4View.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CPaintView : public CScrollView
  8. {
  9.     DECLARE_DYNCREATE (CPaintView)
  10.  
  11. private:
  12.     CPoint m_ptFrom;
  13.     CPoint m_ptTo;
  14.  
  15.     CPaintDoc* GetDocument () { return (CPaintDoc*) m_pDocument; }
  16.     void InvertLine (CDC*, CPoint, CPoint);
  17.  
  18. public:
  19.     virtual void OnInitialUpdate ();
  20.  
  21. protected:
  22.     virtual void OnDraw (CDC*);
  23.  
  24.     afx_msg void OnLButtonDown (UINT, CPoint);
  25.     afx_msg void OnMouseMove (UINT, CPoint);
  26.     afx_msg void OnLButtonUp (UINT, CPoint);
  27.     afx_msg void OnContextMenu (CWnd*, CPoint);
  28.  
  29.     DECLARE_MESSAGE_MAP ()
  30. };
  31.